package twoD.IsoPfem.utils;

import inf.jlinalg.Vector2D;

import java.util.ArrayList;


public class GiDMeshReaderDemo {
	public static void main(String[] args) {
		GiDMeshReader G = new GiDMeshReader(
				"D:/Giang/vgu/zWork/simple_beam.gid/mesh3.txt");

		ArrayList<Vector2D> nodes = null;
		nodes = G.getNodes2d();
		for (Vector2D v : nodes)
			System.out.println(v.toString());

		ArrayList<ArrayList<Integer>> elements = null;
		elements = G.getElements();
		for (ArrayList<Integer> e : elements) {
			for (int i : e)
				System.out.print(i + " ");
			System.out.println();
		}
	}
}
